package com.yx.modules.api.dao;

import com.yx.modules.api.entity.TbBookRecommendRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 图书推荐记录
 * 
 * @author luo
 * @email www.baidu.com
 * @date 2018-07-04 18:14:32
 */
@Mapper
@Repository
public interface TbBookRecommendRecordDao extends BaseDao<TbBookRecommendRecord> {

    TbBookRecommendRecord findByBookidAndUserid(@Param("userid") Integer userId, @Param("bookid") Integer id);

    List<TbBookRecommendRecord> findByBookid(Integer id);
}
